[PATCH v5 1/6] coresight: configfs: Update memory allocation / free for configfs elements