[Bug 9224] Add support for PREPARE/2-phase commit