autopair-global-mode will respect autopair-dont-activate

autopair-global-mode will respect autopair-dont-activate when set in a major-mode hook.

global minor modes will turn on before major modes are set, and you deal with that for turning on autopair mode, but not when autopair should not have been turned on in the first place. 

This will allow a user to set autopair-dont-activate in a major mode hook and the global mode will respect that by turning it off.

this is a known limitation of global minor modes: (taken from global minor mode docs)

```
If MODE's set-up depends on the major mode in effect when it was
enabled, then disabling and reenabling MODE should make MODE work
correctly with the current major mode.  This is important to
prevent problems with derived modes, that is, major modes that
call another major mode in their body.
```