Fix for OpenMP C++ standalone: if the number of synapses was not divisible by the number of threads, not all synapses where always included in the last thread

(cherry picked from commit 66a462cc4bde6e9dda020fbdc294527c5706df06)