[core] Make detachChild() optional on TWAbsLayoutManager subclasses