main/cryptsetup: make sure we flush stdout when prompting user

ref #3471