bmalloc: Fixed a leak in the per-thread cache