[virtmagma] Update for magma_device_t

This type was introduced to avoid file descriptors in the API.
Add magma_device_import and magma_device_release.
Update to magma_create_connection2 and magma_query2.

Change-Id: I5191892697f9ba43db640a9942f2f9406b525621
2 files changed