ClientAgent: Make locking re-entrant.