Use SafeHandle on Mono, but keep using CriticalHandle on Windows

- CriticalHandle does not do any refcounting and is a tiny bit faster