Fixed timestamp dump bug in PSTH sink & message locking in record control