Use exclusive queue as distributed lock?

Just thought of an additional way to implement this with an exclusive queue, without needing to know explicitly that you’re active or passive. If I prepopulate the queue with a single message, and each connected consumer creates a flow but never acks any messages, then receiving that message would indicate that you’re the active consumer. If the active (head) consumer shuts down then another consumer will become active and receive that same message, indicating that it’s the head and can perform headship tasks. Does that sounds reasonable?