#34 merge xa and 2pc fixes from mariadb MDEV-3861 and others