Yak shaving usually refers to work that you started doing because you needed it while working on your actual problem, but the work isn't directly related to that problem's solution.
Here's a more detailed discussion: http://projects.csail.mit.edu/gsb/old-archive/gsb-archive/gs...