#1189: set_time_limit() when safe_mode = On

Checking if safe_mode is on before calling set_time_limit.

This means our scheduler can reach max_execution_time though. Not great, but at least our little scheduler will get a chance to try. :smile: