lockd: Add helper to sanity check incoming NOTIFY requests