Fix FunctionScheduler::resetFunctionTimer concurrency bug