devname(3): apply S_ISBLK() to type, not dev_t
PR: 269190
(cherry picked from commit 0311fe403d35f6241fa94104c4b92c9d73214cbc)