Lock access to event buffer during A, B calculations
Lock access to event buffer during A, B calculations

Prevent callbacks from changing encoder event buffer when A and B
matrices are copying data.

oliverlee/phobos,oliverlee/phobos,oliverlee/phobos,oliverlee/phobos