In device attach function, need also to tes if device is maked as IN_USE
   otherwise two successive calls to this function can allocate the same
   devtab entry.

refs #75