Js_of_ocaml / Lwt: Missing Ocaml threads primitives at compilation

I’ve gotten a similar error when I was accidentally calling a library (Core, in my case) which was not supported by js_of_ocaml.