ensure sgl is locked
more unlock fixing