ref locking: allow 'foo' when 'foo/bar' used to exist but not anymore.