Verify lock is held while updating VaadinSession or connector state (#9515)

Change-Id: Iceacb7dae6c4f433ccf747fca5a89514622baba4