linux: fix lx_rmap test do not stuck

The test did not fail actually. It just behaved strangely and got stuck
in the good case, which is fixed now.

Fixes #1121.