Fixes concurrency issue with scriptengine timers
Fix attachemnt getting into wrong state

	If you play a recording containing attachement with different
attachemnts already on, those attachement will sometime get into a wrong
state.
Same fix for MyAvatar class
Merge pull request #3462 from Atlante45/fix_attachment_bug_with_recording

Fixes concurrency issue with ScriptEngine timers