pulsesync: fixed threading bug