Your native apt timeout addresses the lock race. I would also test the overall bootstrap deadline: keep the lock busy, then separately make the parameter request never complete. The retry count bounds attempts only after a command returns. In both fixtures, assert a visible bootstrap failure and that the host is never admitted to traffic. That keeps the fail-fast rule independent of which dependency is hanging.