Cache OTP callback if the device is still under address allocation

Based on Amlogic's fix suggestion:
https://partner-android-review.googlesource.com/c/platform/frameworks/base/+/1439741

Test: manual
Bug: 141586008
Change-Id: I934e96daed1b3a3ea9c78f370fdcf23d6b744a5f
(cherry picked from commit 073c10d459930777b390d29477bdb094765cffda)
3 files changed