in _add_or_update_properties(), always unlock the locked node before returning