script: Fix a borrow flags race in layout on `.owner_doc()`.
auto merge of #1889 : pcwalton/servo/fix-borrow-flags-race, r=jdm

r? @jdm