Why not apply a bit of Relay Logic and use just one relay - click diagram for full size image.
If PIR1 turns on it controls the lights directly, If PIR2 turns on it disconnects PIR1 and controls the lights, eliminating any loopback problem.
Just need a 2PDT relay.
hth