libcamera: reset ringbuffer when clearing buffers
Keeping the ringbuffer state around resulted in a high chance of using wrong buffer IDs for consequent streams, causing various issues.
Closes #4227 (closed)
Please backport to 1.2 and 1.0 if/when merged.
Edited by Robert Mader