def lock():
    '''
    Attempts an exclusive lock on the candidate configuration. This
    is a non-blocking call.