Move spinlock to a function static variable from global.

The current code hits static initializer check.
Moved to a function so that it will be initialized on demand.

Bug: 1119650
Test: Ran linux-rel tryjob.

Change-Id: Id77428a3754892c6f17fab48030d9f44673e37ac
Reviewed-by: Will Harris <>
Commit-Queue: Hidehiko Abe <>
Cr-Commit-Position: refs/heads/master@{#800380}
GitOrigin-RevId: 6092e05ee2ec2599bb6e32764100621bd980cc1e
1 file changed
tree: 3b075771776baa47cd9b5de8afcb113872ca1d80
  1. src/