Write a test for docker executor logs race condition
This is a followup of: !2101 (merged)
There should be a test that validates the regression it fixes, i.e. that if the container exits before logs have finished being copied to the job trace, we don't lose any logs.
In order to do that we seem to need !1963 (merged) to be merged.