Make access() throw if another session is already locked (#11757)

Change-Id: Ic8571b0d078c3ff64e8b9914e55c51766ae49024