Bind mounts in Docker Volume Plugin V2


I am trying to build a v2 plugin for Docker using the following config spec

I bind mount a couple of host directories into the plugin. At the same time I want to export some directories from the plugin outside onto the host. However plugin enable fails with this error

Error response from daemon: rpc error: code = 2 desc = oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"rootfs_linux.go:54: mounting \\\"/var/lib/osd\\\" to rootfs \\\"/var/lib/docker/plugins/764d5fe6585f439abb157ebeb88050d07e3785c863a005330607aeea12861324/rootfs\\\" at \\\"/var/lib/osd\\\" caused \\\"stat /var/lib/osd: no such file or directory\\\"\""

This happens because /var/lib/osd is present in plugin’s rootfs but not on host.
When running as a container, docker run command would create the non-existent directory and hence I was able to export.

Is there a way we can do it in docker v2 plugins?