'Unlocks the Curses ui thread.
Decrease the lock counter by one and unlock the ui thread if the
counter reaches 0.  Only call this method when the calling
thread owns the lock. A RuntimeError is raised if this method is
called when the lock is unlocked.'

def unlock(self):

    self.iolock.release()
