tests: script-tester: fix locking of test-server
Calling functions on test server must lock the thread loop, otherwise the concurrency causes corruptiont in module-protocol-native and you get bogus messages etc.
Calling functions on test server must lock the thread loop, otherwise the concurrency causes corruptiont in module-protocol-native and you get bogus messages etc.