Avoid reading freed data in glade_project_read_requires

Ensure that required_lib is NULL at the start of each iteration through
the loop.