Homeowner gets property back after monthlong battle with squatters who changed locks