The library has become a safe space for people who are struggling, and a new kind of worker aims to build relationships and resolve problems.