Add a second barrier to SlidingWindowReservoir.

Closes #395.
Make SlidingWindowReservoir synchronized.

Closes #395.