[PATCH OLK-6.6 2/8] xsched: fix NULL pointer risk on attach entry allocation