arch/x86: Add basic spinlock implementation

Signed-off-by: Pawel Dziepak <pdziepak@quarnos.org>
arch/x86: Protect i8259 driver with spinlock

Signed-off-by: Pawel Dziepak <pdziepak@quarnos.org>