sparc: Add atomic support for SPARC V8

Use SWAP instruction with one lock for the system in the SMP case.
Require presence of <stdatomic.h> for SMP support
smptests/smplock01: Use atomic operations
score: Use atomic API for SMP lock

Use a ticket lock implementation based on atomic operations.  Delete CPU
port specific SMP lock implementations.
score: Add SMP barrier