Implementation of pageDB test and repair option when closing the
external storage. This functionality is currently implemented
only for the ConcurrentTree.