refs #6417 acquire a lock per archive id which should be better