The time warehouse workers spend walking to and from their work areas to undergo mandatory pre- and post-shift security screenings should be counted as “hours worked,” a class-action lawsuit alleged.