def METHOD_NAME(self):
    global lock, registering
    val = False 
    lock.acquire()
    val = registering
    lock.release()
    if val:
        return Task.ASK_LATER
    ret = Task.Task.METHOD_NAME(self)
    if ret == Task.RUN_ME:
        lock.acquire()
        registering = True
        lock.release()
    return ret