crypto/scheduler: add API to get attached slaves