Remove thread.pinned in a migration

Migration runs fine on current prod db.