libwinpr-synch: improve timer queue implementation