make realpath use O_PATH when opening the file