'Locks the Curses ui thread.
Can be invoked multiple times from the owning thread. Invoking
from a non-owning thread blocks and waits until it has been
unlocked by the owning thread.'

def lock(self, block=True):

    return self.iolock.acquire(block)
