fixes nginx access log rotate issue
Merge pull request #1462 from edx/e0d/fix-race-condition

fixes nginx access log rotate issue