Decorator: require an active QUA program scope before calling fn.
Suitable for QUA-mutating methods (declare, assign, stream_back, …).
Do not use at the top of methods that must raise other errors first (e.g. OPNIC
table-managed guards on declare()).