fix a bug that can't create backtrace file - `O_CREAT` was missing