WINDOWS: fix terrible performance pitfall of creating backtraces