readlinkat(2): allow O_PATH fd
PR: 258856
(cherry picked from commit 5fb54d2fc845464ea809e6a1a69380693943cf51)