fn encode_timestamp(ts: i64) -> [u8; 8]
Encode a timestamp with sign-bit flip for correct lexicographic ordering.