test: add test for mutex_unlock_and_sleep()

This small test lets 2 threads sleep alternating.
Using mutex_unlock() followed by thread_sleep() instead of the atomic mutex_unlock_and_sleep() produces a deadlock.

Depends on #728