VIF: add VIF.get_locking_mode()

This parses the port-locking configuration in the VIF metadata.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>