notifyOrDefer
If the current coroutine is executing inside a withTransaction block, records tableName as dirty so the notification is deferred to after commit. Outside a transaction, calls SqlDriver.notifyListeners immediately (preserving the existing per-operation behaviour).
Called by generated repository code — not intended for direct use.