[mono-counters] Fix possible mutex non-unlocking if counter allocation failed

In case counter would failed to be allocated, the function would return, without calling mono_mutex_unlock (&counters_mutex) which would make access to any counters impossible.