Whats wrong with this scenario, its time to switch to your 4th period class, you realized you forgot your 4th period's notebook so you decide to run to your locker very quickly to gather your items before the bell rings and class starts.
During passing periods, you can not go to your lockers, you will need to first speak to your 4th period teacher.