Merge "libsnapshot: Check for valid snapshots based on current slot" into main