pkg/storage/memory: Add in-memory object store
pkg/storage/memory: Delay locking during writes until the whole object body has been read