[libvirt] LXC: Helper function for checking ownership of dir when userns enabled