Fixes races condition in getSingleRelationship().

Added test that checks for duplicate entries in the iterator returned by getSingleRelationship. If the iterator contains multiple identical entries, then silently swallow any barf and return the first as the user expected.

Note: this commit is a bit of a band-aid since we really need proper isolation in the kernel. The test and the code likely should be removed in some future state.

Conflicts:
	community/kernel/src/main/java/org/neo4j/kernel/impl/core/NodeImpl.java
Removed unused parameters from method signatures.

In common with 1.9.x there are a bunch of unused parameters for methods in NodeImpl. Used safe delete to remove them.