cpuset,mempolicy: fix sleeping function called from invalid context