Camera3: Fixes for input buffer references and return

1) HAL should not hold on to the input buffer pointer after
process_capture_request returns, so deep copy the buffer
2) Fix an error where the input buffer was not returned to the
framework in certain cases.

Bug: 21935351
Change-Id: I1644747d60f7d000c35e09db4cebe8bc31b76036
2 files changed