winpr: more fixes for named pipes

- refcount must be set to 1 in createFile
- refcount must be considered in client and server mode
- only call pfnRemoveBaseNamedPipeFromList if the pfn is not NULL
- don't free handle if refcount is not zero