Fix CurrentSettings autoload bug in development
Originally opened at !2526 (closed) by @huacnlee.
In development env, when we changed any file hit Rails reload, it will failed with this message:
A copy of Gitlab::CurrentSettings has been removed from the module tree but is still active