pylibfdt: Work-around SWIG limitations with flexible arrays

U-Boot has a fork of this pylibfdt file, so it was missing the
upstream patch.

Change-Id: Ib351a437793e61e0d9b5af2494864d6a4db888fb
diff --git a/scripts/dtc/pylibfdt/libfdt.i_shipped b/scripts/dtc/pylibfdt/libfdt.i_shipped
index 56cc5d4..5046dbf 100644
--- a/scripts/dtc/pylibfdt/libfdt.i_shipped
+++ b/scripts/dtc/pylibfdt/libfdt.i_shipped
@@ -996,6 +996,9 @@
 
 %rename(fdt_property) fdt_property_func;
 
+%immutable fdt_property::data;
+%immutable fdt_node_header::name;
+
 /*
  * fdt32_t is a big-endian 32-bit value defined to uint32_t in libfdt_env.h
  * so use the same type here.