Unregister spinlocks from the connection when they are destroyed.