Add missing mode argument for openat(...O_CREAT) calls