Version 1.21.35.
ocaml: Set close-on-exit flag to true in this test so handle is cleaned up.

Otherwise the valgrind test fails since the handle resources
are leaked.
perl: Make the 030-create-flags test same as canonical OCaml version.