libwinpr-synch: fix bugs in timer queue