CI is slow sometime. To make the test less flaky, we increases the timeout. This does not affect the correctness, but the test might take longer to finish or to fail.
multiple cpu running makes it slower, so it waits longer for relock.
Build tags are not compatible with block comments. Also adds copyright header to a few places it was missing.