Restore lock/unlock under iOS 7.x and OS X 10.9