A new property `singleFrameMode` has been added to motiondetect, that
behaves exactly the same way as in detect-match.
A loop has been added in template-match to check that the property
singleFrame was actually changed when exiting g_cond_wait.

Added synchronization fix in the "get property" function and signalling
when the gstreamer element itself modifies its attribute.