Add function for finding unused BARs

MSI-X will need up to two unused BARs, and at least one.
Next step is code to find the MSI-X capability and fill in the
blanks.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>