make notification init thread-safe