Locks and door and window hardware