layout: Make box building thread safe by pushing down styles into

non-element children during the cascade.

Fetching them from the parent isn't thread-safe.

r? @metajack