when an imagestore is used, a R/O layer must be written to the
layers.json under the imagestore, not graphroot.
The lock on the imagestore is already taken through the
multipleLockFile{} mechanism in place.
Closes: https://github.com/containers/storage/issues/2257
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>