Fix: handle pthread_mutex_trylock contention
Fix: handle pthread_mutex_trylock contention

The previous code did not handle `pthread_mutex_trylock` actually being locked.
It now returns ELLOCK, which needs to be handled by clients of the library.

rbruggem/mqlog,rbruggem/mqlog