Block layout RPC on the first layout call
Merge pull request #3254 from cgaebel/issue-3232

Block LayoutRPC until the first reflow.