improved error handling when locking device for configuration and added ...

...tests to know whether focus/exposure modes are supported