[PATCH v2 1/2] locking: Implement an algorithm choice for Wound-Wait mutexes