[PATCH v6 2/7] mutex: add support for wound/wait style locks