Copy native_handle in MetaData mode

In MetaData mode, video buffer stores a pointer to struct native_handle.
The video buffer needs a deep copy to avoid dangling pointer.

Test: run cts testcase testRecorderTimeLapsedVideo 10 times, and it
passed 10 times

Bug: 116833091
Change-Id: Ia84b9e858860a04d3fbcd58d4609351bb4270832
1 file changed