Improve performance of "scontrol show job"

SLowness introduced in commit 83d626ca45032d71f3847a9a92e9a21fac5e8031