Patches for check_mysql_performance: add threshold support [sf#3395359] [#1121]