path_test: adjust test for open(O_PATH | O_CREAT)
(cherry picked from commit 749b3b2c0629f44f6b0044992dfb2ce5ac7e562b)