Make SlidingWindowReservoir synchronized.

Closes #395.