Here in Scotland, flats are normally freehold with the communal parts like roofs and stairwells jointly owned by the owners of the flats. If someone wants to sue after falling in the stairwell, the owners probably have joint and several liability. In practice the problem is not being sued by visitors, it is getting all the owners to agree to do something.