Fixed the long waiting bug in waiting lists.

There active waiting loan isn't getting expired after 24 hours.
There is a bug in processing waiting list, that was pushing the expiry
date by one day everytime the script is run. That should be done once
once. It has been fixed.