BUG: lobpcg returned wrong values for small matrices (n < 10)

This PR fixes some bugs in one of the code paths of `scipy.sparse.linalg.lobpcg`, at least partially addressing https://github.com/scipy/scipy/issues/3592.