Provide a cg_completion_timeout helper function for unreliable functions that takes arbitrary functions and parameters and reliably returns.