HORNETQ-1117 - prevention of races during XA protocol