eina: improve thread debugging and portability.
All thread debugging facility, including lock debug, on by turning --enable-debug-threads
at configure time of eina.
When threads check are disable, make sure that all lock/release are called
from the main loop only. And in all case, eina_lock_new/eina_lock_delete should be
called from the main loop.
Remove static initialization as it is not portable under Windows.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@59118
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33