[PATCH openEuler-1.0-LTS 11/41] share_pool: Extract sp_alloc_prepare