[sync.c] Added mutex_try_lock-function

should be clean.
The function works for me, but may be faulty, I just adapter the mutex_lock function to be non-blocking.