refs Tokutek/mongo#645, change signature of hot_optimize to have output variable
of number of loops run