Make VaadinService.closeInactiveUIs set UI threadlocals (#12186)
 
Also update javadocs for methods called without UI threadlocals
Also make sure pending access tasks are run for a UI being closed

Change-Id: Ia600207b2d25fc195ee4254da371d420152bf100