fixing lock message handling; setting group write permissions explicitly