If the squatter is allowed to break in while you're not home and change the locks, why can't the owner wait for them to be out and also break in and change the locks?
Does the law specifically say that breaking in is allowed by anyone except the legitimate owner?