smaps: only define clear_refs for CONFIG_MMU