mutex: Add more tests to lib/locking-selftest.c