Try to acquire the lock. It will block if the lock is not available.
This function has no parameters.