repository::cache::lock() implementation.
repository::cache refactoring.

validate_and_repair() -> verify_and_repair()
repository::cache implementation.
repository::native was removed.