Update to SVN 9999
Added locking around scripting hooks