ocaml-ctypes 0.4.2 is now available via OPAM. It's a bug-fix release which fixes a problem with callbacks into OCaml that re-acquire the runtime lock while multiple threads are running. If you're using Foreign.funptr with the ~runtime_lock argument then I recommend upgrading.