tests: Flush stdout in the fake pinentry.