Return error when acquire semaphore lock gets error
Return error when acquire semaphore lock gets error

Signed-off-by: Kanda Zhang <128726964a83543ab38a49d11e256264ef29e647@ibm.com>

containers/image,containers/image