libwinpr-synch: add initial synchronization barrier implementation