core: Drop the 'update_lastmsgid' statements