eal/windows: fix return codes of pthread shim layer