simple process locker for distributed apps