Fix concurrency contention when recording high water mark in ets_buffer