agent,tests,w32: Fix relaying pinentry user data, fix fake-pinentry.