[PATCH openEuler-1.0-LTS 098/103] share_pool: Fix missing semaphore operation in error branch