ctdb-locking: Fork lock helper with vfork_with_logging()