No court of the United States, of any State, Territory, or possession of the United States, or of the District of Columbia, shall have jurisdiction of any action or proceeding, whether instituted prior to or on or after May 14, 1947, to enforce liability or impose punishment for or on account of the failure of the employer to pay minimum wages or overtime compensation under the Fair Labor Standards Act of 1938, as amended [
29 U.S.C.
201 et seq.], under the Walsh-Healey Act [
41 U.S.C.
35 et seq.], or under the Bacon-Davis Act, to the extent that such action or proceeding seeks to enforce any liability or impose any punishment with respect to an activity which was not compensable under subsections (a) and (b) of this section.