I don't think people are going to be able to help for this sort of problem without seeing it.
As I see it there are three options
– a leak or something flexing that shouldn't – no idea how this could be triggered by the cap unless something's bending/distorting when you do it up
– air in the system still though again, I don't see how the cap would have an effect
– somehow the top cap causing a problem with the seals in the lever piston meaning that pulling the lever is pressurising the reservoir which just flexes the rubber reservoir seal
I'd get it working without the cap again and then fit the reservoir cap but don't bolt it up – does it still work? If so then very gradually tighten the bolts and see when it stops working.