Implement a test for thread support in OCaml >= 4.00. (Closes: #1358)