Fix type-spec of mem3_sync:next_replication/3