Move the logic from api.isTypingProtected() into the base NVDAObject's isProtected property.
However, the isProtected property now also cashes any positive result. I.e. If the object has protected at least once, then it stays protected for its lifetime.
Fixes #7908