Add Semaphore#to_mtx for a faster but unchecked mutex-like facade

Adds a mutex-like facade for semaphore as Semaphore#to_mtx. This is unchecked,
and is advised only to be used when code is known to be correct via the checks in
Mutex, and performance is known to be an issue.