Attempts to lock the specified mutex. If the mutex is already locked, the calling thread does not wait for the mutex to become available.