Clear the stdin buffer before question

For some reason, upgrade was cancelled for me twice today. In both cases thanks
to extra characters in stdin buffer when yum (then rpmconf) were cancelled.

This patch reads 10000 characters in one second to clear the stdin buffer prior
to asking. This is standard practice which prevents this kinds of errors.