Check for other than self-referencing wasn't correct.
As a result, tests only worked in DEFERRED execution mode.
merge MMcM: Address issues with foreign key self reference handling

Merge pull request #1224 from MMcM/sql-layer/foreign-key-self-reference-2
https://github.com/FoundationDB/sql-layer/pull/1224