kernel - Fix spinlock held on switch