[infiniband] Add last_opened_ibdev(), analogous to last_opened_netdev()