Add rpc interface stubss on replica for 2-phase commit