Save folder expansion state to local storage