This is not exactly what you are (or were) looking for, but for MySQL 5.6 and 5.7 at least, there are ways to limit:
-The number of queries an account can issue per hour
-The number of updates an account can issue per hour
-The number of times an account can connect to the server per hour
-The number of simultaneous connections to the server by an account
See http://dev.mysql.com/doc/refman/5.7/en/user-resources.html for more info.
I can't seem to find a CPU/memory locked solution, but will update this post if I find one.