Add optional perms argument to Filename.open_temp_file.

You sometimes want to be able to specify the permissions of the temporary file. See for example this issue https://github.com/ocsigen/js_of_ocaml/issues/182