- fix big in use of rid for SYS_RES_IRQ - catch up with ATA common code by adding lock function
Approved by: benno