Limit Bake and then break

Yes, odd question. What is the problem you want to solve? Could it be done by setting a flag when baking that must be explicitly reset before bake is allowed to work again? Python ‘globals()’ could be useful for that.