Fixed securityID reference in updating locks