HBASE-26453 Correct the behavior of isBeneath to not consider paths which share a name prefix as beneath one another.

The current implementation of isBeneath fails when given paths of the
form '/foo' and '/foobar' (returning that '/foobar' is beneath '/foo').

Because this method returns incorrect values, it causes Curator mutexes
to be removed and znodes to be removed while they were potentially held.

Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
2 files changed