Fix two issues of user key map for extension commands.

This fixes #9954 and #9953.
This timeout will eventually be exceeded, so it's not a complete solution.

Instead, code should listen for "keyBindingAdded" event. Of course, key map should not be updated for every new key binding, so use `_.debounce()` to key maps are not updated more than once per 1000ms or so?