Lock and unlock LoadInst