[TIMOB-17172] (3_3_X) Do not wait on main thread for layout messaging.

Cherry Pick PR #5815 to 3_3_X

Test is in [JIRA](https://jira.appcelerator.org/browse/TIMOB-17172)
Note:
The size behavior of TableView seems to be broken but that should not be considered a blocker for this PR. The behavior is broken in 3.2.3.GA as well

Also fixes [TIMOB-17167](https://jira.appcelerator.org/browse/TIMOB-17167)