New template core cause problem in APC when apc.state = 1; Now fall back to old version with little modify: The unlink will be run in critical section so no error will be display to user.