vcl: initialize worker thread index and heap map slot