lpar: Simplify and extend file locking to include everything

42b87348-3ff1-11e4-986a-c80aa9e67bbd