extcon: Fix hang and extcon_get/set_cable_state().