BeOS classes are not threadsafe
In BeOS, each window runs in its own thread. Because of this,
we have a proxy layer between the mozilla UI thread, and calls made
within the window's thread via CallMethod(). However, since the windows
are still running in their own thread, and reference counting takes place within
that thread, we need to reference and de-reference outselves atomically.
r=rpotts
sr=blizzard
a=asa
git-svn-id: svn://10.0.0.236/trunk@132888 18797224-902f-48f8-a5cc-f745e15eee43