Add C function for breaking on attempts to transfer temporary object across contexts