use F_CLOEXEC if we can
add test, bitwise arithm, note about 1.8/1.9/2.0 differences
Merge pull request #840 from opscode/lcg/cloexec_lockfile

Lcg/cloexec lockfile