Check more return codes (fixes #3)

- check return codes of `pthread_mutex_*`;
- prepend all error messages with 'liblogfaf: '.