[TIMOB-16162] Fixed race condition when already logging a device build and performing another device build.