Fix the NodeFlags methods that are called by layout.

They should never borrow.