[PATCH v3 21/35] monitor: eliminate monitor_is_hmp_non_interactive method