Fixes AI not being able to use maintenance APCs

This is done by adding a new get_wall_mounted_turf() helper proc.
Fixes #6508
Merge pull request #6510 from tkdrg/aypc

Fixes AI not being able to use maintenance APCs