[Extensions] Add browser tests for in-process extension threads

This test verifies if extensions registered to the Browser Thread are
indeed running on the Browser Thread. The same applies for extensions
registered to the Extension Thread.

We also test if messages (sync and async) are working on both scenarios.