Fixed another similar bug in the discharge operation (checking if excess flow is > 0 before push operation). Must acquire lock before every read acess aswell since the data might be in a compromised state while doing the read operation since someother thread might be holding the lock and modifying it