Added atomic locks to position manager.
added atomic locks to robot system.
adapted the trajectory manager to ucos2.

It was mostly rewriting the event control thing that is used to stop the
trajectory task.