Change mutex and semaphore handling weak functions prototype

Changed mutex lock/unlock and semaphore take/give functions to return
an int value instead of void.

Change-Id: I619327b9e14a3c37697617cbe0cba358102bd6a0
diff --git a/include/ethosu_driver.h b/include/ethosu_driver.h
index bf6a578..053b529 100644
--- a/include/ethosu_driver.h
+++ b/include/ethosu_driver.h
@@ -120,11 +120,16 @@
  * ethosu_driver.c.
  */
 void *ethosu_mutex_create(void);
-void ethosu_mutex_lock(void *mutex);
-void ethosu_mutex_unlock(void *mutex);
 void *ethosu_semaphore_create(void);
-void ethosu_semaphore_take(void *sem);
-void ethosu_semaphore_give(void *sem);
+/*
+ * Returns:
+ *   -1 on error
+ *    0 on success
+ */
+int ethosu_mutex_lock(void *mutex);
+int ethosu_mutex_unlock(void *mutex);
+int ethosu_semaphore_take(void *sem);
+int ethosu_semaphore_give(void *sem);
 
 /*
  * Callbacks for begin/end of inference. user_data pointer is passed to the