Fix viewer open state not being refreshed
The state is now cached to avoid refetching the same emails, again and
again. But viewerOpen and the list of features should still be always up
to date, fortunately this is quick to recompute.
- GnuPG-bug-id: T7681