memref-test: Add test for dup syscall

Add a test that duplicates a memref handle and checks
that writes to the original handle are seen when mmap'ing
the duplicate.

Bug: 242940548
Test: com.android.memref.test
Change-Id: I8a8ca03cc7065ab8682e4169620ac7b4b87db68a
1 file changed