linux(4): Deduplicate linux_trans_osrel().
MFC after: 1 week
(cherry picked from commit 95b8603427d5759c5d6090ffaacfaf7f3b8fb926)