Remove empty method from release build

I relocated the `#if DEBUG` and `#endif` lines to fully exclude the empty method `SafeHandleBase.Dispose` from release builds.