modprobe: fix memory leak when built with zlib support

We don't use posix file locks anymore, so we don't need to play games
with fds, and we don't need to worry about dropping locks when we close
fds.  This allows us to simplify the code a bit and remove the
intentional memory leak.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
4 files changed