[Extensions] Add an access check before executing native code in the renderer
Sometimes things can intercept bindings. Check access before doing anything.
This is a first step that just adds it for the test API.
BUG=598165
Review URL: https://codereview.chromium.org/1843803002
Cr-Commit-Position: refs/heads/master@{#384614}