notification locking to avoid double workers sending notifications more than once