Fix ByteBuffer#as*Buffer using parent limit

(Direct|Heap)ByteBuffer#as*Buffer results were affected
by the #limit(int) call on its parent - limit check
was done on each call to the get/put operation. This
is mitigated by creating a #duplicate of parent for
each as*Buffer result.

Bug: 26019694
Bug: 26019022
Bug: 26011790
Change-Id: If564ef9421ea0232b31aac048b3600e667c56c16
7 files changed