simplify returning the previous count in NtReleaseMutant