Mutex implementation (without timeouts).

returns bool