add is_in_transaction to Singleton module