sophia: client multi-thread tests and fixes