taking another look at mantis #1502: adding necessary locks, checking for empty list.
taking another look at mantis #1502: adding necessary locks, checking for empty list.




ft-/opensim-optimizations-wip,ft-/arribasim-dev-extras,Michelle-Argus/ArribasimExtract,M-O-S-E-S/opensim,QuillLittlefeather/opensim-1,QuillLittlefeather/opensim-1,ft-/opensim-optimizations-wip-extras,TomDataworks/opensim,Michelle-Argus/ArribasimExtract,justinccdev/opensim,OpenSimian/opensimulator,N3X15/VoxelSim,bravelittlescientist/opensim-performance,ft-/arribasim-dev-extras,AlexRa/opensim-mods-Alex,RavenB/opensim,ft-/opensim-optimizations-wip-extras,N3X15/VoxelSim,zekizeki/agentservice,TomDataworks/opensim,zekizeki/agentservice,intari/OpenSimMirror,allquixotic/opensim-autobackup,zekizeki/agentservice,rryk/omp-server,M-O-S-E-S/opensim,AlphaStaxLLC/taiga,intari/OpenSimMirror,cdbean/CySim,N3X15/VoxelSim,AlphaStaxLLC/taiga,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,M-O-S-E-S/opensim,Michelle-Argus/ArribasimExtract,RavenB/opensim,ft-/opensim-optimizations-wip-tests,ft-/opensim-optimizations-wip-extras,ft-/arribasim-dev-extras,ft-/arribasim-dev-extras,M-O-S-E-S/opensim,OpenSimian/opensimulator,ft-/opensim-optimizations-wip-tests,TechplexEngineer/Aurora-Sim,zekizeki/agentservice,rryk/omp-server,allquixotic/opensim-autobackup,OpenSimian/opensimulator,ft-/arribasim-dev-tests,intari/OpenSimMirror,ft-/opensim-optimizations-wip,bravelittlescientist/opensim-performance,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,justinccdev/opensim,AlphaStaxLLC/taiga,ft-/opensim-optimizations-wip,ft-/arribasim-dev-tests,rryk/omp-server,BogusCurry/arribasim-dev,ft-/arribasim-dev-extras,OpenSimian/opensimulator,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TechplexEngineer/Aurora-Sim,rryk/omp-server,zekizeki/agentservice,ft-/opensim-optimizations-wip-extras,N3X15/VoxelSim,TechplexEngineer/Aurora-Sim,ft-/arribasim-dev-tests,justinccdev/opensim,allquixotic/opensim-autobackup,bravelittlescientist/opensim-performance,OpenSimian/opensimulator,TomDataworks/opensim,allquixotic/opensim-autobackup,Michelle-Argus/ArribasimExtract,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,BogusCurry/arribasim-dev,ft-/opensim-optimizations-wip-extras,RavenB/opensim,QuillLittlefeather/opensim-1,AlphaStaxLLC/taiga,BogusCurry/arribasim-dev,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,M-O-S-E-S/opensim,ft-/opensim-optimizations-wip-tests,AlexRa/opensim-mods-Alex,cdbean/CySim,ft-/opensim-optimizations-wip,bravelittlescientist/opensim-performance,cdbean/CySim,TomDataworks/opensim,justinccdev/opensim,AlexRa/opensim-mods-Alex,justinccdev/opensim,ft-/arribasim-dev-tests,RavenB/opensim,AlexRa/opensim-mods-Alex,QuillLittlefeather/opensim-1,rryk/omp-server,cdbean/CySim,AlexRa/opensim-mods-Alex,Michelle-Argus/ArribasimExtract,N3X15/VoxelSim,intari/OpenSimMirror,OpenSimian/opensimulator,AlphaStaxLLC/taiga,M-O-S-E-S/opensim,ft-/opensim-optimizations-wip-tests,QuillLittlefeather/opensim-1,bravelittlescientist/opensim-performance,N3X15/VoxelSim,TomDataworks/opensim,RavenB/opensim,rryk/omp-server,BogusCurry/arribasim-dev,zekizeki/agentservice,AlphaStaxLLC/taiga,TomDataworks/opensim,intari/OpenSimMirror,ft-/arribasim-dev-tests,BogusCurry/arribasim-dev,AlphaStaxLLC/taiga,QuillLittlefeather/opensim-1,TomDataworks/opensim,M-O-S-E-S/opensim,N3X15/VoxelSim,allquixotic/opensim-autobackup,ft-/arribasim-dev-extras,RavenB/opensim,ft-/arribasim-dev-tests,intari/OpenSimMirror,AlphaStaxLLC/taiga,ft-/opensim-optimizations-wip-tests,QuillLittlefeather/opensim-1,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,bravelittlescientist/opensim-performance,TechplexEngineer/Aurora-Sim,N3X15/VoxelSim,OpenSimian/opensimulator,BogusCurry/arribasim-dev,cdbean/CySim,justinccdev/opensim,AlexRa/opensim-mods-Alex,RavenB/opensim,cdbean/CySim,allquixotic/opensim-autobackup,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,Michelle-Argus/ArribasimExtract