[Applications.Common] Increment the reference counter on SafeHandle instances (#4691)