libcontainer: Create dirs/files as needed for bind mounts

Closes #5698