Fixed bug in param queue which meant that queue file would become unlocked at the wrong point and synchronisation was lost.