The setupUserNamespace function is always called.
The setupUserNamespace function is always called.

The function is called even if the usernamespace is not set.
This results having wrong uid/gid set on devices.

This fix add a test to check if usernamespace is set befor calling
setupUserNamespace.

Fixes #1742

Signed-off-by: Julien Lavesque <088bb334904b16c9a73bd290859f8b3ed10534ff@gmail.com>

mYmNeo/runc,laijs/runc,opencontainers/runc,laijs/runc,estesp/runc,xiaochenshen/runc,justincormack/runc,wking/runc,crosbymichael/runc,mikebrow/runc,kolyshkin/runc,cyphar/runc,kolyshkin/runc,dqminh/runc,justincormack/runc,stefanberger/runc,stefanberger/runc,wking/runc,xiaochenshen/runc,adrianreber/runc,estesp/runc,estesp/runc,cyphar/runc,xiaochenshen/runc,adrianreber/runc,mheon/runc,mheon/runc,dqminh/runc,cyphar/runc,crosbymichael/runc,laijs/runc,dqminh/runc,mYmNeo/runc,opencontainers/runc,dqminh/runc,rhatdan/runc,justincormack/runc,rhatdan/runc,rhatdan/runc,kolyshkin/runc,mikebrow/runc,stefanberger/runc,opencontainers/runc,mikebrow/runc,wking/runc,crosbymichael/runc,mYmNeo/runc,mheon/runc,rhatdan/runc,kolyshkin/runc,opencontainers/runc,adrianreber/runc