do not switch uid/gid if it's already the same

this addresses [PUP-3457](https://tickets.puppetlabs.com/browse/PUP-3457): if the uid/gid is already the one we're
supposed to switch to, do not attempt to switch, just return.