fix a minor/unlikely race condition

If interrupted just after finding a password but before printing it, an
autosave could occur which when restored would skip over the password
that was just found (regression from version 0.6.6);
also a minor bugfix in get_opencl_devices()