Added mutex-functions to pthreads.c

Following functions were added:
- pthread_mutex_init
- pthread_mutex_trylock
- pthread_mutex_lock
- pthread_mutex_unlock