Fixed semafors trough message queues.