Lock iax2 pvt structure when passing off to the AMI function, and make sure it exists...