Add a semaphore for characteristic write complete instead of a fixed value delay