Implement sflock.