check that locking/unlocking null mutex will die.

Signed-off-by: Wilfried Chauveau <ithinuel@gmail.com>