[DF-4841] Added spinlock primitive