[PLAT-4781] Give a clear() method to InMemoryIdentifierMap.