build_controller_mntlist: handle circular linked list

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>