The widget tick calls load_tasks() every five seconds; a tool updating a task at the same moment had its array reset under it, which made test_planner fail intermittently (about one run in six). A recursive mutex now covers the three tools, the /tasks command and the tick; the reload and the save happen under the same lock. Found by running test_planner repeatedly after a full check failed once; 20 consecutive runs pass now.