Add synchronized blocks to places where the list of clients is modified