Part of GetDeviceListsForUsers RPC rewrite. Details in ENG-8843.
Added a function that fetches latest device lists by using the timestamp attribute from users table. This way, we can get primary keys for device lists
without using Query, and thus can do BatchGet