Test for "could not lock instantaneously invisible tuple inserted in same transaction"