Mutex implementation (without timeouts).

it should return bool - it's more optimizable