Avoid second open attempt if read-only & no-such-file

Change-Id: If360ad2acb26f2d0ef5c5ff42f2052bf7d92c085