libibmad: Add NodeRecord query API

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Ira Weiny <weiny2@llnl.gov>