Added locking/signaling for queue list, kind-of-logging to suppress debug output, fixed somejson memory leaks