doc: Replace all (allow-none) annotations by (optional) and/or (nullable)

Closed Corentin Noël requested to merge tintou/NetworkManager:tintou/no-allow-none into main

The (allow-none) annotation is deprecated since a long time now, it is better to use (nullable) and/or (optional) which clarifies what it means with the (out) annotation.

Merge request reports