libpq: Report strerror on pthread_mutex_lock() failure