Avoiding BlockedIndefinitelyOnSTM exceptions