added more concurrency tests, fixed checking for client->is_closed post-lock aquisition