set HADC_lock_fd env variable. Can't come up with better solution