Males will lock will males. They often wrestle first, because they both want their tail underneath. But bored horny males will pair up and lock together repeatedly in the absence of a female.
So no, a lock is not definitive. You need a qualified herp vet or breeder to probe to confirm it's a female.