Lock solver grasshopper

Hi, I am working on project with large data, I use lock solver to lock then I made my changes then unlock it, but I have a problem, I use web socket to connect to frontend and when I lock, I lost this connection, so is there any solution so I can exclude this web socket component from being locked.

Thanks

Regards
Mohamed