api: fix ReadOnly support for tmpfs Upstream-commit: 8a396f90f5ff32aee36ada3cfd0a1ed214f0e88e Component: engine