vlib: fix trace number accounting