libutils: Forward-port an old callstack method (Thx Omnirom)