Fix some dodgy synchronisation.

Change-Id: I829d5e34edaf30bcdd171b693a5ad44f053f0430
Reviewed-on: http://gerrit.dmdirc.com/3829
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>