powerpc: Add helper functions for transactional memory context switching