[core] Implement "process.maxTickDepth".