Webapp stuck with "Key duplication when adding: httpModules"

Hi,

some fixes that should improve my situation with "Key duplication when adding: httpModules" problem

Locking isn't something I've done a lot of, however, would it not be better to have a list of lock objects based on the section name? Otherwise you could be locking when you don't need to?