libreplace: Add support for pthread_mutex_consistent