Picard groups of $b$-symplectic manifolds