fix stupid bug in updating of O_ACCMODE for O_SEARCH support