authenticate the pinentry helper's uid using SO_PEERCRED

This should always succeed, and doesn't provide any assurance we're NOT
connected to a malicious pinentry, but we check it because we can.
If it does fail, something incredibly janky is going on.