small fix to fix occasional deadlock problem in EspKeyValueController