Update bywaf.py

added delegate function to be executed so it is picklable and the job gets done.
fixes the stale jobs issue. (not staying in running state any-more)