Fix ReleasesManager::currentRelease relying on lockfile only