blk: check return value of pthread_mutex_unlock()