[ARM] Add config option for selecting common locking implementation

Signed-off-by: Anup Patel <anup@brainfault.org>