Allow other threads to run during gphoto2 calls

Some gphoto2 functions take several seconds to complete, so it makes
sense to allow other Python threads to run during these C library calls.