Minor follow-up tasks to #1399. Tasks: - [ ] Replace the simplistic, inefficient `VecDeque` ringbuffer with the [ContGenericRingbuffer](https://docs.rs/ringbuffer/latest/ringbuffer/struct.ConstGenericRingBuffer.html), which is much more efficient and better tested. https://github.com/integritee-network/worker/pull/1399#discussion_r1279326451 - [ ] Write unit tests for the header hash pruning - [ ] Rethink how to handle the locking https://github.com/integritee-network/worker/pull/1399#discussion_r1280230168