[PATCH openEuler-1.0-LTS 14/41] share_pool: Extract sp_alloc_finish