SERVER-16394 Fix JSThreadConfig leak