libwinpr-clipboard: improve robustness