make globals static
Only use the malloc mutex if the os is already running.

This prevents lockups if you use malloc before you start the os with os_run().
Merge branch 'master' of github.com:cvra/platform-abstraction
Merge pull request #41 from Stapelzeiger/master

Don't use malloc mutex before the OS is started