How to call PythonCall.jl behind a julia HTTP webserver?

Hi there, I am wondering how I could use langchain from Python as part of a webserver.

I am running into segmenation faults certainly due to multithreading. Does someone know a way whether the new @unlock and @lock are enough for this use case? Or does someone know a good way to spawn threads on thread one (because that is where PythonCall locks the GIL by default)?