st-hal: fix pending ec ref count check against 0

This fixes an issue that the ref count could be decreased
to -1 unexpectedly.

Change-Id: I3666eed56f22cdbd3b2b2ab0dd470f48f64acb80
1 file changed