Close lock file descriptor on fork to prevent lock propagation

Signed-off-by: Michal Čihař <michal@cihar.com>