Add tests for java.nio.channels.FileChannel lock methods

lock()
lock(long, long, boolean)
tryLock()
tryLock(long, long, boolean)

Bug: 27186422
(cherry-picked from commit 2eff57cc1164d20f8a748f8e752ebac021476167)
Change-Id: Ia2d67993d61116e83e636e9305e40932e79d2584
6 files changed