lock with host/pid