Automatically cleanup lock node