fix segmentsToRecycle -> activeSegments
cleanup / comment
fix switchlock deadlock
rename next -> last and remove unnecessary isFullySynced method
fix RAF leak on recycle
simplify away flag to discard/delete
whitespace