Revert "mutex: Move mutex spinning code from sched/core.c back to mutex.c"

This reverts commit e0fb7de7ecc098f5e6c618ffe4276472184848c7.