Fix #17 by using critical_enter/critical_exit around outlets.