qt: PeerTableModel: Fix potential deadlock. #4296