Return a boolean indicating whether this object is locked right now.
multiprocessing/Semaphore.locked
Semaphore.locked