Add detailed tracing when TASKMGR_TRACE is define
When TASKMGR_TRACE=1 is defined, the task and event objects have detailed tracing information about function, file, line, and backtrace (to the extent tracked by gcc) where it was created.
At exit, when there are unfinished tasks, they will be printed along with the detailed information.
Edited by Ondřej Surý