use Signal::Mask while accessing scoreboard files (cherry-picks from 5a2cb55,2ab20dd) (fix #6)