Sorry to revive a 5 year old thread but I had this same issue on a '77 XS400D hat had been sitting for years.
The solution for me was to take off the master cylinder, remove the screwed down & pressed on tank, and flush every hole I could find with brake cleaner. Jeff0133 was right in my case...