try_lock and is_locked for spinlock

Signed-off-by: Thynson <lanxingcan@gmail.com>
Fix spinlock

Signed-off-by: Thynson <lanxingcan@gmail.com>