esp32: fix some bugs of modem sleep See merge request idf/esp-idf!3223
The note is not visible to the blocked user.