Checks if the locker has access to the current thread. If the locker holds a different thread, than an Error is thrown.
()
source not stored for this graph (policy: none)
no outgoing calls