MASTER_POS_WAIT() does not work accross out datacenters due to the binlogs have no direct relationship.
We need an option to use a different method, such as:
a) MASTER_GTID_WAIT()
b) Checking the heartbeat table and sleeping a bit until timeout/sync (in non-transaction mode to avoid repeatable-read staleness)