Change ReferenceQueue.add to append at end of the unenqueued list

We now append the singly linked list at the end of the queue.
Previously the list was added after the first element of the
unenqueued list.

Bug: 17381967

(cherry picked from commit 37477444ae4d6fae52258f9ea85d32d5a87ebef2)

Change-Id: Ie6680df476518236037254546380a8255ad801ac
1 file changed