Only adjust html margin if need be

Allows for nested modals (with varying lockClass/overlayClass) to play nicer with one another, shouldn't have any other effect.