[PATCH kernel-4.19 1/2] share_pool: Free newly generated id only when necessary