Temporary os_mkdtemp implementation. Use it instead of mkdtemp.