Revert "Revert "mutex: restrict mutex spinning to only one task per mutex""

This reverts commit f4de7af44ec484b2c774a5ece6bdb5593cf997cb.