fix FTBFS in unit test if building without CUDA

Code that is needed by the host implementation must not be enclosed by
HALMD_WITH_GPU guards.

The error was detected by nightly the test runs:
http://my.cdash.org/viewBuildError.php?type=0&buildid=468930