Use mock._patch_stopall instead of stopping individual patches in tests