bta: dm: Don't use memcpy on areas that may overlap.

Change-Id: I52ba6a663732420db952a93779576f8988d26d2f
O3 breaks bluetooth for grouper

Change-Id: If445fe4076501a797e1c0c7c63a636c864c8ad91