Unnecessary locks and data share in MemoryDatastore struct implementation
Remove locks to access read-only data. Storage returns vals instead of refs because of possible concurrent modifications after retrieval. Returned entities must be a deep copies.
Closes: #2353 (closed)