ACPI: Rework acpi_get_child() to be more efficient