Checking if a locus is flagged with a bitmask.