Add timeout to kill mutations causing infinite loop

* Will also prevent excessive runtime for core unit specs.