recursive mutex for linux
Merge pull request #1850 from ilya-lavrenov:pthread_mutex