Incubaid/tokyocabinet — pull request #4 by NicolasT (2014-05-27 10:45:04+00:00)
Title: Set `TCETHREAD` when pthread mutex or lock allocation fails

Failures in `pthread_rwlock_init` or `pthread_mutex_init` called from
`tcbdbsetmutex` could result in the call returning failure (as desired),
but not setting an error code on the database object. This results in
applications reporting failures with error message 'success'.

It's unclear why `pthread_rwlock_init` or `pthread_mutex_init` would fail
though.

See: https://github.com/Incubaid/arakoon/issues/428