We never need to compute stuff when logging that computation... This is the first part of solving a race condition that locks up amalgame.
do not lock mapping_counts/4 if it can get results from cache.  This is the second part of solving the race condition
Adding debug statements helping to add MT debugging