bad free of bitmaps which are still in use

Without this change, canceling the last task of a job array while pending could result in a fatal error due to NULL bitmap value
Fix for job array hash table

Without this change, if the last task of a job array is started, then requeued, it will appear twice in the job array hash table, which typically results in a linked list that loops back on itself (an infinite loop)