doc: Add note about global variables