Added mutex-functions to pthreads.c

Following functions were added:
- pthread_mutex_init
- pthread_mutex_trylock
- pthread_mutex_lock
- pthread_mutex_unlock
Added headers and mutex typedefinitions to threads.h
Fixed missing enum from ptrhead.h
Integrated POSIX mutex code