api: wait for the device to be idle before releasing the context resources
api: wait for the device to be idle before releasing the context resources

Makes sure that the context resources are not currently in use while
releasing them. This is useful on modern backends where there is no
implicit synchronization mechanism.

gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl