add a retry to getting available devices from instruments (fix #3796)