This is a fix for #1280. Added lock around access to management lists.

Added lock around the access to the sound effect management lists. Also changed the use of HashSet in lieu of List.