check_mysql: allow until condition on a slave

Just turning attached patch of github issue #1007 into a push request.