* Remove one possible deadlock situation as seen today * On script rez, XEngine was taking an m_scripts lock and then later on an m_parts lock when looking for a part by local id * In the meantime, a scene object being deleted would take an m_parts lock and then later on try to take an m_scripts lock when it tried to trigger script removal * There may be better ways to resolve this, but I believe that in general, we must always take an m_parts lock before an m_scripts lock
* Remove one possible deadlock situation as seen today
* On script rez, XEngine was taking an m_scripts lock and then later on an m_parts lock when looking for a part by local id
* In the meantime, a scene object being deleted would take an m_parts lock and then later on try to take an m_scripts lock when it tried to trigger script removal
* There may be better ways to resolve this, but I believe that in general, we must always take an m_parts lock before an m_scripts lock



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