Fix synchronization bug in pvcalarms