[lib] Removed pwm_find_key_id()

Find the env key id in the library, when it is needed.