Fix sterheimer kpt parallel
Description
Bugfix for Sternheimer with k-point (and spin) parallelization. A test is added to cover this case and avoid that this case fails in the future.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.