posix thread mutex lock practising