Fixed pabopto2rad for new grid union
Minor modification should not affect results
Added call to flockfile() to reduce i/o overhead