[Bugfix] fixed bug where InMemory realms were not separated

InMemoryPersistenceHandler did not keep separate DAOs for each realm, so
that the realms were not separated in memory