Fix issuse #358

Fixes an important bug in OpenMP standalone -- the fix it more of a workaround, though, since we lose all parallelism for threshold and `SpikeGeneratorGroup`. On the other hand, this is better than losing spikes :)