Chunk server: implement remote sync state machine logic with write append and client threads. Create peer's remote sync state machine withing a client thread. Implement handling of remote sync state machine finish method invocation from a different thread than the client thread by keeping the state machine reference until after the finish method returns in order to grantee the state machine object validity. Restrict access to client and remote state machine thread list entries methods, move client and remote sync specific methods into the corresponding client thread list entries classes. Make methods naming more uniform.