'Monster's loophole' in NSW custody deaths