Fix buildings locked on world load

Buildings in any map.yaml would remain locked (could not be sold, etc.).
This is a bit unwieldy to have inside the if - you should pull this out into a variable definition first.