Remove thread.pinned in a migration