devmapper: Support running docker inside docker

The devicemapper device namespace is global, so when running docker inside
a docker container we prefix the device names with the docker container
id to avoid conflicts with the host instance.