Add check to r_file_mkstemp calls.