Fixes AI not being able to use maintenance APCs

This is done by adding a new get_wall_mounted_turf() helper proc.
Fixes #6508