slist queue: added function for removing arbtitrary items

This is a generalisation of the existing pop function, which in turn now just calls down to the general one.