webrtcendpoint: Fix wrong logic for destroy and finalize

Destroy function is desgined to unref internal references to objects whose
life cycle is mnaged by a counter of references while finalize is used to
free resources such as dynamic allocated memory.

Change-Id: Ib4413b683e41c034c5bfcdc1b9a31359c9ce2e69