sdmc_open: implement O_EXCL and O_TRUNC