99b20257a4
This prevents close_repositories() and _open_repository() to concurrently mess with _repodb_cache, which is a dict, thus not thread-safe.