[server] Move the definition of VirtualDataStoreForeachProc to VirtualDataStore.h so that other classes can use it.