Forbid concurrent libnotify calls in multiple threads