ibacm: Add the ability to preload the destination GID and LID caches

Port of commit ID 73ba295f from upstream ACM to SSA ACM

Preloading of these caches is supported via a file which is
produced by OpenSM by the dump_pr plugin which contains
sufficient SA PathRecord information. Details on this
file format and configuring OpenSM for this are found in
dump_pr_notes.txt in dump_pr.

File format is specified in ibacm_opts.cfg as follows:
path_rec_fmt full_opensm_v1

File format defaults to none which means no preload of ACM cache.

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
acm.c: Move pthread_join for ctrl_thread to shutdown

This change allows acme to work with acm again

Also, #if 0 out some original ACM code for time being
until both old ACM and new SSA modes are supported

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>