HPCC-11666 Make Queries list filterable by referenced library

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Do you have write access at this point?  You really need to lock the queryset before updating.  Another reason this probably needs to be done at another time.