add test for pthread mutex lock