sdm: support for layer_stack output buffer as shared_ptr

Dump is using output_buffer even after it is freed in cwb_manager
Use shared_ptr to avoid use-after-free for output buffer

Change-Id: Id903ad75ddced047a28b96d313d9b6c2ab7514f2
CRs-Fixed: 3352773
11 files changed