building: Improve building checks through macros.

Add BUILDING_HAS_SERF() macro.
Use BUILDING_IS_BURNING() and BUILDING_IS_DONE() in more places.