Bug fix: Deadlocks after fork().

Signed-off-by: Frank Mertens <frank@cyblogic.de>