add cstring dup, rename test_mutex as mutex_test & fix mutex to_string

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