use of mutexe when removing protocols due to server closing

Signed-off-by: Mattias Andrée <maandree@operamail.com>
doc

Signed-off-by: Mattias Andrée <maandree@operamail.com>
doc

Signed-off-by: Mattias Andrée <maandree@operamail.com>
doc

Signed-off-by: Mattias Andrée <maandree@operamail.com>