Support DragonFlyBSD

Note that in contrast to FreeBSD, DragonFly does not work
with force_lazy_lock enabled.