Bug: 45266 Use sequence numbers instead of timestamps

This is a revised version of the earlier fix and should be compatible
with old clients and servers. Needs parallel changes to lsearchd to
remedy the issue of losing updates.

Bug: 45266
Change-Id: I1c4d2d208146e61ccd15975bb412a423849988c8